import java.io.File;

import nba2kmodtool.filedesc.N2kPackageFile;
import nba2kmodtool.filedesc.v2010.IffFile;

public class MainTest10 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {

			IffFile iff = new IffFile(new File("C://png943.iff"));
			//IffFile iff = new IffFile(new File("D:/My Documents/s001.iff"));
			if (iff.isCompressed()) {
				iff.writeDecompressFile();
			}
			N2kPackageFile pag0 = iff.readPackageFile(2);
			//iff.exportModelFile(new File("C://out1"), pag0.getModels());
			//iff.exportIgModel(new File("C://out1.n2km"), pag0.getModels());
			System.out.println("========");
			iff = new IffFile(new File("C://org_png177_0.iff"));
			if (iff.isCompressed()) {
				iff.writeDecompressFile();
			}
			N2kPackageFile pag = iff.readPackageFile(2);
			//iff.exportModelFile(new File("C:out2"), pag.getModels());
			//iff.exportIgModel(new File("C://out2.n2km"), pag.getModels());
			//iff.importIgModelVerts(new File("C://out1.n2km"), pag);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
